#ifndef MYMSGOUT_H
#define MYMSGOUT_H

#include <string>

class MyMsgOut
{
public:
    MyMsgOut();
    virtual ~MyMsgOut();
    void WriteId(const int &id);
    void WriteString(const std::string &str);
    void Write2Bytes(const int &val);

    char *GetData() const;
    unsigned int GetLength() const ;
protected:
private:
    void Expand(unsigned int bytesToAdd);
    char *mData;
    unsigned int mDataSize;
    unsigned int mPos;
};

#endif // MYMSGOUT_H
